package com.qys.livesMall.shop.modal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("h2_shop_statistics_info")
@Schema(name = "H2ShopStatisticsInfo", description = "店铺统计信息表")
public class H2ShopStatisticsInfo implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 店铺id
     */
    @TableField("shop_id")
    private Long shopId;
    /**
     * 充提差额
     */
    @TableField("difference")
    private BigDecimal difference;
    /**
     * 充值金额
     */
    @TableField("recharge")
    private BigDecimal recharge;
    /**
     * 提现金额
     */
    @TableField("withdrawal")
    private BigDecimal withdrawal;
    /**
     * 提现次数
     */
    @TableField("withdrawal_number")
    private Integer withdrawalNumber;
    /**
     * 充值次数
     */
    @TableField("recharge_number")
    private Integer rechargeNumber;
    /**
     * 累计个人收益
     */
    @TableField("cumulative")
    private BigDecimal cumulative;
    /**
     * 店铺订单数量
     */
    @TableField("order_number")
    private Integer orderNumber;

    /**
     * 店铺销量
     */
    @TableField("sales_volume")
    private Integer salesVolume;

    /**
     * 店铺销售额
     */
    @TableField("sales_amount")
    private BigDecimal salesAmount;

    /**
     * 首次日期
     */
    @TableField("first_charge")
    private LocalDateTime firstCharge;

    /**
     * 复冲金额
     */
    @TableField("recharge_money")
    private BigDecimal rechargeMoney;

    /**
     * 备注
     */
    @TableField("notes")
    private String notes;

    /**
     * 是否过期
     */
    private Integer expire;
    /**
     * 待提现金额
     */
    @TableField("wait_withdrawal")
    private BigDecimal waitWithdrawal;

    /**
     * 库存额
     */
    @TableField("stocks_amount")
    private BigDecimal stocksAmount;

    /**
     * 库存量
     */
    @TableField("stocks_num")
    private Integer stocksNum;

}
